EmailMessage = function( data ) {
	
	this.rawData = data;
	
	for( var object in data) {
		for( var key in data[ object ] ) {
			var value = data[ object ][ key ];
			this[ key ] = value;
		}
	}
	
};

EmailMessage.prototype.rawData = null;
EmailMessage.prototype.recipient_to_email = null;
EmailMessage.prototype.subject = null;
EmailMessage.prototype.email_body = null;

EmailMessage.prototype.getSubject = function() {
	return this.subject;
};
EmailMessage.prototype.setSubject = function( value ) {
	this.subject = value;
};

EmailMessage.prototype.getBody = function() {
	return this.email_body;
};
EmailMessage.prototype.setBody = function( value ) {
	this.email_body = value;
};
